using System.Linq;
namespace SomethingSpacial.AppServices.Web
{
    /// <summary>
    ///     Partial class extending the User type
    ///     that will be available only in the client app
    /// </summary>
    public partial class User
    {
        public bool IsAdmin
        {
            get
            {
                return this.Roles.Contains("Admin");
            }
        }
    }
}
